package com.itheima.service;

import com.itheima.mapper.AchievementMapper;
import com.itheima.pojo.Achievement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author huangbin
 * @date 2022/6/6 19:33
 */
@Service
public class AchievementService {
    @Autowired
    private AchievementMapper achievementMapper;

    public Integer add(Achievement achievement) {
        return achievementMapper.add(achievement);
    }

    public BigDecimal sumMPrice() {
        return achievementMapper.sumMPrice();
    }

    public List<Map<String, Object>> IdMPrice() {
        return achievementMapper.IdMPrice();
    }
}
